<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">
<h:head>
	<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
	<script language="javascript" type="text/javascript" src="../../files/js/validacoes.js"></script>
    <p:resources/>  
</h:head>
<h:body >
	<h:form id="formIncAgenMedico">

		<p:panel>
		
			<h:panelGrid id="gridGeral">
				
				<h:outputText value="Selecione os dias da semana que vai trabalhar"/>
		
		
				<h:outputText value="Especialidade: " />
				 <h:selectOneMenu value="#{medicoBean.tEspecialidade}" >  
		                <f:selectItem itemLabel="Selecione a Especialidade" />  
           		        <f:selectItem itemLabel="Acupuntura" itemValue="Acupuntura"/>
		                <f:selectItem itemLabel="Cardiologista" itemValue="Cardiologista"/>
		                <f:selectItem itemLabel="Clinica Geral"  itemValue="Clinica Geral"/> 
		                <f:selectItem itemLabel="Cirurgiao" itemValue="Cirurgiao"/>
		                <f:selectItem itemLabel="Endocrinologista" itemValue="Endocrinologista"/>		                 		               
		                <f:selectItem itemLabel="Ortopedia" itemValue="Ortopedia"/>
		                <f:selectItem itemLabel="Quiropraxia" itemValue="Quiropraxia"/>
		                <f:selectItem itemLabel="Nutricional" itemValue="Nutricionista"/>
		                <f:selectItem itemLabel="Psicologia" itemValue="Psicologia"/>  
		         </h:selectOneMenu> 

           		 <h:outputText value="Clinica: " />
				<h:selectOneMenu value="#{medicoBean.tClinica}" >  
				                <f:selectItem itemLabel="Campinas" itemValue="Campinas"/>
					            <f:selectItem itemLabel="Carapicuiba" itemValue="Carapicuiba"/>
				                <f:selectItem itemLabel="Guarulhos" itemValue="Guarulhos"/>  
				                <f:selectItem itemLabel="Lapa" itemValue="Lapa"/>
				                <f:selectItem itemLabel="Osasco" itemValue="Osasco"/>
				                <f:selectItem itemLabel="Sao Paulo" itemValue="Sao Paulo"/>
				                <f:selectItem itemLabel="Santos" itemValue="Santos"/>  
		         </h:selectOneMenu> 
           		 

				<h:selectManyCheckbox id="seg" value="#{medicoBean.tSegDia}">
					<f:selectItem itemLabel="Segunda" itemValue="2"/>	
				</h:selectManyCheckbox>
				<h:selectManyCheckbox id="segH" value="#{medicoBean.tSegPer}">
					<f:selectItem itemLabel="08:00 - 12:00" itemValue="0" />	
					<f:selectItem itemLabel="12:01 - 18:00" itemValue="1" />
					<f:selectItem itemLabel="18:01 - 20:00" itemValue="2" />
				</h:selectManyCheckbox>

				<h:selectManyCheckbox id="ter" value="#{medicoBean.tTerDia}">
					<f:selectItem itemLabel="Terca" itemValue="3"/>	
				</h:selectManyCheckbox> 
				<h:selectManyCheckbox id="terH" value="#{medicoBean.tTerPer}">
					<f:selectItem itemLabel="08:00 - 12:00" itemValue="0" />	
					<f:selectItem itemLabel="12:01 - 18:00" itemValue="1" />
					<f:selectItem itemLabel="18:01 - 20:00" itemValue="2" />	
				</h:selectManyCheckbox>

				<h:selectManyCheckbox id="qua" value="#{medicoBean.tQuaDia}">
					<f:selectItem itemLabel="Quarta" itemValue="4"/>	
				</h:selectManyCheckbox>
				<h:selectManyCheckbox id="quaH" value="#{medicoBean.tQuaPer}">
					<f:selectItem itemLabel="08:00 - 12:00" itemValue="0" />	
					<f:selectItem itemLabel="12:01 - 18:00" itemValue="1" />
					<f:selectItem itemLabel="18:01 - 20:00" itemValue="2" />
				</h:selectManyCheckbox>

				<h:selectManyCheckbox id="qui" value="#{medicoBean.tQuiDia}">
					<f:selectItem itemLabel="Quinta" itemValue="5"/>	
				</h:selectManyCheckbox>
				<h:selectManyCheckbox id="quiH" value="#{medicoBean.tQuiPer}">
					<f:selectItem itemLabel="08:00 - 12:00" itemValue="0" />	
					<f:selectItem itemLabel="12:01 - 18:00" itemValue="1" />
					<f:selectItem itemLabel="18:01 - 20:00" itemValue="2" />
				</h:selectManyCheckbox>

				<h:selectManyCheckbox id="sex" value="#{medicoBean.tSexDia}">
					<f:selectItem itemLabel="Sexta" itemValue="6"/>	
				</h:selectManyCheckbox>
				<h:selectManyCheckbox id="sexH" value="#{medicoBean.tSexPer}">
					<f:selectItem itemLabel="08:00 - 12:00" itemValue="0" />	
					<f:selectItem itemLabel="12:01 - 18:00" itemValue="1" />
					<f:selectItem itemLabel="18:01 - 20:00" itemValue="2" />	
				</h:selectManyCheckbox>

				<h:selectManyCheckbox id="sab" value="#{medicoBean.tSabDia}">
					<f:selectItem itemLabel="Sabado" itemValue="7"/>	
				</h:selectManyCheckbox>
				<h:selectManyCheckbox id="sabH" value="#{medicoBean.tSabPer}">
					<f:selectItem itemLabel="08:00 - 12:00" itemValue="0" />	
					<f:selectItem itemLabel="12:01 - 18:00" itemValue="1" />
					<f:selectItem itemLabel="18:01 - 20:00" itemValue="2" />	
				</h:selectManyCheckbox>

			</h:panelGrid>
				
			<div id="geral">
				<div id="medico" style="position: absolute; visibility: hidden;">
					<h:panelGrid id="gridMedico" columns="2">


					</h:panelGrid>
				</div>
				<div id="botoes" style="top: 0; position: relative;">
					<h:panelGrid id="gridBotoes" columns="2">

						<p:commandButton value="Salvar" action="#{medicoBean.incluir}" update="growl,formIncAgenMedico"/>
						<p:commandButton value="Voltar" action="#{loginBean.voltarM}" />
						<p:growl globalOnly="true" id="growl" showDetail="true"	sticky="true"></p:growl>

					</h:panelGrid>
				</div>
			</div>
		</p:panel>
	</h:form>
</h:body>	
	   
</html>